/**
 * 				ClientTimer.java
 *				------------
 *		
 *   Author:	bin04017@gmail.com
 *	 Created:	13.12.2006
 *	 Project:	MP3-Sync (Mochito)
 *	 Package:	mochito.clientClasses
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */
package mochito.clientClasses.clientTimer;

import mochito.dataClasses.musicItem.MusicItem;

/**
 * @author bin04017
 * 
 */
public class ClientTimer {

	private ClientTimerThread timeThread = new ClientTimerThread();

	public void addMusicItem(MusicItem item) {
		ClientTimerThreadItem clientTimerThreadItem = new ClientTimerThreadItem(
				item.getStartDate(), item.getStartTime(), item);
		timeThread.addClientTimerThreadItem(clientTimerThreadItem);
	}

	public void start() {
		timeThread.start();
	}

	public ClientTimer() {

	}

	public void stop() {
		timeThread.running = false;
	}

}
